package com.lib.model;

import java.util.StringTokenizer;

public class SplitStr {
	public String[] splitStr(String str, String delim){
		String[] result={"",""};
		int index=0;
		StringTokenizer st = new StringTokenizer(str, delim);
		while(st.hasMoreTokens()){
			result[index] = st.nextToken();
			index++;
		}
		return result;
		
	}
	public String splitStr(String str, int leng){
		return str.substring(0, leng);
	}
	public String[] splStrPhone(String str, String delemeter){
		String[] result={"","",""};
		int index=0;
		StringTokenizer st = new StringTokenizer(str, delemeter);
		while(st.hasMoreTokens()){
			result[index] = st.nextToken();
			index++;
		}
		return result;
	}
}
